{# An action's confirmation (dialog body). The button calls the JSON API; ``data-api-done`` is the toast app.js shows when it succeeds, after which it closes the dialog and re-requests the section. #} {% from "components/macros/layout.html" import confirm %} {# A block, so each value is escaped once, inside quotes that stay quotes. #} {% set attrs %}data-write data-api-done="{{ done }}"{% endset %} {{ confirm(title, body, url, label, method, attrs=attrs, tone=tone|default("danger")) }}